Skip to content

Add support for AccessLog API#1001

Merged
1 commit merged into
gooddata:masterfrom
jeskepetr:WA-12423
Mar 3, 2021
Merged

Add support for AccessLog API#1001
1 commit merged into
gooddata:masterfrom
jeskepetr:WA-12423

Conversation

@jeskepetr
Copy link
Copy Markdown
Contributor

@jeskepetr jeskepetr commented Feb 25, 2021

Fixes #1004

@ghost
Copy link
Copy Markdown

ghost commented Feb 25, 2021

Build succeeded (check pipeline).

@coveralls
Copy link
Copy Markdown

coveralls commented Feb 25, 2021

Coverage Status

Coverage increased (+0.08%) to 86.284% when pulling 28a7fd6 on jeskepetr:WA-12423 into b6f1569 on gooddata:master.

@peter-plochan
Copy link
Copy Markdown
Contributor

Please do not use GoodData internal tickets in PRs/commits for this "really public" OSS library. Create GitHub issue instead and add there the description of problem/feature and possibly, if you need to, link the internal ticket within this issue.

Copy link
Copy Markdown
Contributor

@peter-plochan peter-plochan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments below.
Also, I'm just wondering what's the purpose of this not-AuditEvent bean and its special API endpoint? As I can see, it still represents a part audit log (GD internally - CFAL)...

@mverbovsky
Copy link
Copy Markdown

mverbovsky commented Feb 26, 2021

See comments below.
Also, I'm just wondering what's the purpose of this not-AuditEvent bean and its special API endpoint? As I can see, it still represents a part audit log (GD internally - CFAL)...

@peter-plochan It is part of cfal, but they are special events/acces logs directly from haproxy that represents access logs for particular hosts. In this case you do not have domain and user context. So if you try to reuse AuditLog then you will have to change whole logic behind AuditLogs because they are build upon domain and user. The API also will support Common Log Format, so it is really access logs to particular host.

@peter-plochan
Copy link
Copy Markdown
Contributor

See comments below.
Also, I'm just wondering what's the purpose of this not-AuditEvent bean and its special API endpoint? As I can see, it still represents a part audit log (GD internally - CFAL)...

@peter-plochan It is part of cfal, but they are special events/acces logs directly from haproxy that represents access logs for particular hosts. In this case you do not have domain and user context. So if you try to reuse AuditLog then you will have to change whole logic behind AuditLogs because they are build upon domain and user. The API also will support Common Log Format, so it is really access logs to particular host.

Ahh, ok, thanks for the explanation @mverbovsky

So the question is, if this whole thing should or should not share the Java package with the other audit log entities (AuditEvent).

@mverbovsky
Copy link
Copy Markdown

See comments below.
Also, I'm just wondering what's the purpose of this not-AuditEvent bean and its special API endpoint? As I can see, it still represents a part audit log (GD internally - CFAL)...

@peter-plochan It is part of cfal, but they are special events/acces logs directly from haproxy that represents access logs for particular hosts. In this case you do not have domain and user context. So if you try to reuse AuditLog then you will have to change whole logic behind AuditLogs because they are build upon domain and user. The API also will support Common Log Format, so it is really access logs to particular host.

Ahh, ok, thanks for the explanation @mverbovsky

So the question is, if this whole thing should or should not share the Java package with the other audit log entities (AuditEvent).

I would vote for the same package, because it is still part of audit logging.

@jeskepetr jeskepetr changed the title FEATURE: WA-12423 Added new models for AccessLog API Add support for CFAL AccessLog API Mar 2, 2021
@ghost
Copy link
Copy Markdown

ghost commented Mar 2, 2021

Build succeeded (check pipeline).

1 similar comment
@ghost
Copy link
Copy Markdown

ghost commented Mar 2, 2021

Build succeeded (check pipeline).

@peter-plochan peter-plochan added this to the next milestone Mar 3, 2021
@ghost
Copy link
Copy Markdown

ghost commented Mar 3, 2021

Build succeeded (check pipeline).

@ghost
Copy link
Copy Markdown

ghost commented Mar 3, 2021

Build succeeded (check pipeline).

@jeskepetr jeskepetr changed the title Add support for CFAL AccessLog API Add support for AccessLog API Mar 3, 2021
Copy link
Copy Markdown
Contributor

@peter-plochan peter-plochan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@ghost ghost removed the merge label Mar 3, 2021
@ghost ghost merged commit b4d25d8 into gooddata:master Mar 3, 2021
@ghost
Copy link
Copy Markdown

ghost commented Mar 3, 2021

@peter-plochan peter-plochan removed this from the next milestone Mar 3, 2021
@liry liry added this to the 3.6.0+api3 milestone Jun 25, 2021
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for AccessLog API

5 participants